-- GENERATED SPELL FOR [Ruuan'ok Ravenguard] --


function spell0_19987(pUnit, Event) --@Angry Arakkoa Ghost,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(36888,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_19987', 1, 1)
end

function spell1_19987(pUnit, Event) --@Thundercleave,n/a--
pUnit:FullCastSpellOnTarget(37581,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19987', 549, 1)
end

function Sorts_19987(pUnit, Event)
local choix_sorts_19987 = math.random(0, 1)
if choix_sorts_19987 == 0 then
pUnit:RegisterEvent('spell0_19987', 1, 1)
end
if choix_sorts_19987 == 1 then
pUnit:RegisterEvent('spell1_19987', 1, 1)
end
end

function mob19987_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19987', math.random(1500, 3000), 1)
end

function mob19987_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19987_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19987_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19987, 1, 'mob19987_Action')
RegisterUnitEvent(19987, 2, 'mob19987_Leave')
RegisterUnitEvent(19987, 3, 'mob19987_Kill')
RegisterUnitEvent(19987, 4, 'mob19987_Die')
